package com.final_;

public class FinalDetail01 {
    public static void main(String[] args) {
        System.out.println(FFF.num);
    }
}

class AA{
    public final double TAX_RATE = 0.08;
    public final double TAX_RATE2;
    public final double TAX_RATE3;
    public AA(){
        TAX_RATE2 = 1.1;
    }
    {
        TAX_RATE3 = 2.2;
    }
}

class BB{
    public static final double TAX_RATE = 99.9;
    public final static double TAX_RATE2;
//    public final static double TAX_RATE3;//在构造器赋值报错
    static {
        TAX_RATE2=3.3;
    }
}

final class CC{}

class DD{
    public final void cal(){
        System.out.println("cal()方法");
    }
}
class EE extends DD{}

class FFF{
    public final static int num = 10000;

   static {
       System.out.println("FFF静态代码块被执行");
   }
}